package javaDesignModel.singleton.synchronizedUpdateSingleton;

import java.util.Vector;

public class SingletonTest {

	 private static SingletonTest instance = null;  
	    private Vector properties = null;  
	  
	    public Vector getProperties() {  
	        return properties;  
	    }  
	  
	    private SingletonTest() {  
	    }  
	  
	    private static synchronized void syncInit() {  
	        if (instance == null) {  
	            instance = new SingletonTest();  
	        }  
	    }  
	  
	    public static SingletonTest getInstance() {  
	        if (instance == null) {  
	            syncInit();  
	        }  
	        return instance;  
	    }  
	  
	    public void updateProperties() {  
	        SingletonTest shadow = new SingletonTest();  
	        properties = shadow.getProperties();  
	    }  

}
